package org.apache.commons.pool2;

/**
 * 类的描述
 *
 * @author ztkool
 * @version v
 */
public interface KeyedPooledObjectFactory<K, V> {

    PooledObject<V> makeObject(K object) throws Exception;

    void destroyObject(K object, PooledObject<V> pooledObject) throws Exception;

    boolean validateObject(K object, PooledObject<V> pooledObject);

    void activateObject(K object, PooledObject<V> pooledObject) throws Exception;

    void passivateObject(K object, PooledObject<V> pooledObject) throws Exception;

}
